QT       += core gui sql

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    0-data/avatar.cpp \
    0-data/db/avatar_db.cpp \
    0-data/threads/avatar_modify_thread.cpp \
    0-data/threads/get_avatars_thread.cpp \
    1-start/welcome_dlg.cpp \
    2-widgets/avatar_widget.cpp \
    2-widgets/create_new_avatar_dlg.cpp \
    main.cpp \
    score_window.cpp

HEADERS += \
    0-data/avatar.h \
    0-data/db/avatar_db.h \
    0-data/threads/avatar_modify_thread.h \
    0-data/threads/get_avatars_thread.h \
    1-start/welcome_dlg.h \
    2-widgets/avatar_widget.h \
    2-widgets/create_new_avatar_dlg.h \
    score_window.h

FORMS += \
    1-start/welcome_dlg.ui \
    2-widgets/avatar_widget.ui \
    2-widgets/create_new_avatar_dlg.ui \
    score_window.ui

TRANSLATIONS += \
    CardBoard_zh_CN.ts
CONFIG += lrelease
CONFIG += embed_translations

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android

RESOURCES += \
    res/res.qrc
